package by.epam.communalservices.entity;

public class User {

    private Long id = 0L;

    private String login = "";

    private String passw = "";

    public User() {
    }

    public User(Long id, String name, String passwd) {
        this.id = id;
        this.login = name;
        this.passw = passwd;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String name) {
        this.login = name;
    }

    public String getPassw() {
        return passw;
    }

    public void setPassw(String passwd) {
        this.passw = passwd;
    }

    public String toString() {
        return new StringBuilder().append("[id: ").append(getId()).append(
                ", name: ").append(getLogin()).append(']').toString();
    }
}
